<template>
    <nav-bar class="shop-food-detail-nav-bar">
      <div slot="left" class="left" @click="handleSkipShop"></div>
      <div slot="center" class="center">{{ $route.query.name }}</div>
    </nav-bar>
</template>

<script>
import NavBar from "components/common/navbar/NavBar";

export default {
  methods: {
    handleSkipShop() {
      this.$router.go(-1)
    }
  },
  components: {
    NavBar,
  },
};
</script>
<style lang="less" scoped>
.shop-food-detail-nav-bar {
  background-color: #3190e8;
  color: #fff;
  .left {
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    margin-left: 10px;
    transform: rotate(-45deg);
  }
  .center {
    font-size: 20px;
  }
}
</style>